import request from "../utils/request";

export function getVacationList(){
    return request.get('/vacation/list');
}

export function getICanApprovedVacations(){
    return request.get('/vacation/getICanApprovedVacations');
}

export function getICanSeeVacations(){
    return request.get('/vacation/getICanSeeVacations');
}

export function getApproved(){
    return request.get("/vacation/getApproved");
}

export function addVacation(params){
    return request.post(`/vacation/addVacation`,params);
}

export function deleteVacationById(id){
    return request.delete(`/vacation/deleteVacationById/${id}`);
}

export function getVacationDetailById(id){
    return request.get(`/vacation/getVacationDetailById/${id}`);
}

export function updateTheVacation(params){
    return request.post('/vacation/updateTheVacation',params);
}

export function updateVacation(params){
    return request.post('/vacation/updateVacation',params);
}
